package org.yefei.homeworkday11;

public class Computer {
	// 4、电脑有品牌，价格，颜色，屏幕大小等属性，定义并测试电脑对象，并输出
	public String brand;// 品牌
	public int price;// 价格
	public String color;// 颜色
	public double size;// 屏幕大小

	public void showInfo() {
		System.out.println("电脑的品牌是：" + brand + ";颜色是：" + color + ";屏幕大小是:" + size + "英寸;价格是：" + price + "元");
	}

	public static void main(String[] args) {
		Computer pc = new Computer();
		pc.brand = "联想";
		pc.color = "black";
		pc.price = 5000;
		pc.size = 15.6;
		pc.showInfo();
	}
}
